import type { Column } from "@/components/CrudPage/type";

export function useSysDictGroupProvider() {
  // 列配置
  const columns: Column[] = [
    {
      label: "分组键名",
      slot: "key",
      prop: "key",
      create: true,
      edit: true
    },
    {
      label: "分组名称",
      slot: "label",
      prop: "label",
      create: true,
      edit: true
    },
    {
      label: "说明",
      slot: "description",
      prop: "description",
      create: true,
      edit: true
    },
    {
      label: "状态",
      slot: "status",
      prop: "status",
      create: true,
      edit: true
    },
    {
      label: "排序",
      slot: "order",
      prop: "order",
      create: true,
      edit: true
    },
    {
      label: "字段",
      slot: "fields",
      prop: "fields",
      create: true,
      edit: true
    },
    {
      label: "操作",
      prop: "operation",
      slot: "operation"
    }
  ];

  return {
    columns
  };
}
